package enums;

import com.heisen.base.constant.HttpConstant;

/**
 * @author sen
 * @description
 * @date 2023/12/29 10:30
 */

public enum  ApiReturnEnums {

    SUCCESS(HttpConstant.HttpCode.SC_OK, HttpConstant.HttpMsg.MSG_OK),

    FAIL(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_FAIL),
    NULL_EXCE(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_NULL_EXCE),
    NULL_PRAM(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_NULL_PRAM),

    VISIT_OVERRUN(HttpConstant.HttpCode.SC_FAILE,HttpConstant.HttpMsg.MSG_VISIT_OVERRUN),
    /**
     * 认证 一类的
     */
    INVALID_TOKEN(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_INVALID_TOKEN),
    AUTH_IS_NULL(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_AUTH_IS_NULL),
    AUTHENTICATION_FAIL(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_AUTHENTICATION_FAIL),
    AUTHENTICATION_TYPE_ISNOT(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_AUTHENTICATION_TYPE_ISNOT),
    SQL_ERRER(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SQL_ERRER),
    REFRESH_TOKEN_INVALID(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_REFRESH_TOKEN_INVALID),
    USER_ISLOCK(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_USER_ISLOCK),
    PASSWORD_ERRER(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_PASSWORD_ERRER),
    ACCOUNT_NOT_FIND(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_ACCOUNT_NOT_FIND),
    NO_PREM(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_NO_PREM),
    NOT_FIND_GRANT_TYPE(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_NOT_FIND_GRAND_TYPE),
    ACCOUNT_NOT_SUPPORTED_LOGIN(HttpConstant.HttpCode.SC_FAILE,HttpConstant.HttpMsg.MSG_ACCOUNT_NOT_SUPPORTED_LOGIN),
    GRANT_TYPE_IS_NULL(HttpConstant.HttpCode.SC_FAILE,HttpConstant.HttpMsg.MSG_GRANT_TYPE_IS_NULL),
    CLIENT_ID_IS_NULL(HttpConstant.HttpCode.SC_FAILE,HttpConstant.HttpMsg.MSG_CLIENT_ID_IS_NULL),
    OAUTH_TOKEN_CONCURRENCY(HttpConstant.HttpCode.SC_FAILE,HttpConstant.HttpMsg.MSG_OAUTH_TOKEN_CONCURRENCY),

    /**
     * 资源一类的
     */
    GETAWAY_INTRANSITE_EXCEPTION(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_GETAWAY_INTRANSITE_EXCEPTION),
    SERVICE_NO_FIND(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_NO_FIND),
    SERVICE_NO_LINK(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_NO_LINK),
    RESCOUSE_NO_FIND(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_RESCOUSE_NO_FIND),
    SERVICE_NO_GETAWAY(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_NO_GETAWAY),
    SERVICE_DISABLE_AND_TIME_OUT(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_DISABLE_AND_TIME_OUT),
    SERVICE_EXCEPTION(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_EXCEPTION),
    SERVICE_DISABLE(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_DISABLE),
    SERVICE_TIME_OUT(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_SERVICE_TIME_OUT),
    SERVICE_NO_FIND_URL(HttpConstant.HttpCode.SC_FAILE, HttpConstant.HttpMsg.MSG_NO_FIND_URL);
    ;
    private Integer code;
    private String desc;

    ApiReturnEnums(Integer code, String desc) {

        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
